package com.jfs.qy.entity.response;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description 通道告警数组
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/11/4
 */
@Data
public class ChannelAlarm implements Serializable {
    /**
     * 通道名称
     */
    private String channel;
    /**
     * 运动报警
     */
    @JSONField(name = "motion_alarm")
    private Boolean motionAlarm;
    /**
     * 暂时不清楚是干嘛用的 文档没有说明
     */
    @JSONField(name = "record_flag")
    private RecordFlag recordFlag;
    /**
     * 摄像头链接信息实体对象
     */
    @JSONField(name = "camera_connect_status")
    private CameraConnectStatus cameraConnectStatus;
    /**
     * io告警
     */
    @JSONField(name = "io_alarm")
    private Boolean ioAlarm;
    /**
     * ptz告警
     */
    @JSONField(name = "pir_alarm")
    private Boolean pirAlarm;
    /**
     * 低电量
     */
    @JSONField(name = "low_power")
    private Boolean lowPower;
    /**
     * 充电
     */
    @JSONField(name = "charge_power")
    private Boolean chargePower;
    /**
     * 通道名称
     */
    @JSONField(name = "channel_name")
    private String channelName;
    /**
     * 摄像机类型
     * fixed_bullet 枪机
     * bullet 筒机
     * ball 半球机
     * dome 球机
     * Uknown 未知类型
     */
    @JSONField(name = "camera_type")
    private String cameraType;
    /**
     *不清楚 文档没有说明
     */
    @JSONField(name = "videoloss")
    private Boolean videoloss;

    /**
     *智能报警上告
     */
    @JSONField(name = "int_alarm")
    private IntAlarm intAlarm;
    /**
     * 告警缩略图
     * base64(imgData)"，当need_background_img字段置为true时，
     * 只有移动侦测、IO告警、和智能告警会推送该字段
     */
    @JSONField(name = "SnapBgImg")
    private String snapBgImg;
}
